package com.apop.common.component;

import com.apop.common.config.action.ActionManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * MyStartupRunner
 * Author: zjy
 * Date: 2021/11/9  15:23
 * Describe: 容器启动完成后通知
 */
@Component
@Slf4j
public class MyStartupRunner implements CommandLineRunner {

    @Value("${spring.profiles.active}")
    private String profile;

    @Override
    public void run(String... strings) {
        ActionManager actionManager = (ActionManager) SpringUtil.getBean("actionManager");
        log.info("容器启动完成！");

    }
}